package com.jims.master.modules.tj.service; /**
 * jims
 */

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.tj.dao.TjHzItemDao;
import com.jims.master.modules.tj.entity.TjHzItem;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 体检小项结果Service
 * @author ct
 * @version 2018-05-05
 */
@Service
@Transactional(readOnly = true)
public class TjHzItemService extends CrudService<TjHzItemDao, TjHzItem> {

	public TjHzItem get(String id) {
		return super.get(id);
	}
	
	public List<TjHzItem> findList(TjHzItem tjHzItem) {
		return super.findList(tjHzItem);
	}
	
	public Page<TjHzItem> findPage(Page<TjHzItem> page, TjHzItem tjHzItem) {
		return super.findPage(page, tjHzItem);
	}
	
	@Transactional(readOnly = false)
	public int save(TjHzItem tjHzItem) {
		return super.save(tjHzItem);
	}
	
	@Transactional(readOnly = false)
	public int delete(TjHzItem tjHzItem) {
		return super.delete(tjHzItem);
	}

	public List<TjHzItem> getitemList(String recordNo){
		return dao.getitemList(recordNo);
	}

	public List<TjHzItem> tjItemListByCode(String recordNo,String code){
		return dao.tjItemListByCode(recordNo,code);
	}
	
}